public class Faculty extends Empolyee{
    public int worktime;
    public String grade;
    Faculty(String name,String adress,String phonenum,String email, String office,double salaries,String date,int worktime,String grade){
        super(name, adress, phonenum, email, office, salaries, date);
        this.worktime = worktime;
        this.grade = grade;
    }
    public String toString(){
        return name + " " + adress + ' '+phonenum+' '+' '+email+' '+office+' '+salaries+' '+date +' '+worktime+' '+grade;
    }
}
